﻿using Castle.DynamicProxy;
using CNKI.TPI.Web.Admin.Model;
using CNKI.TPI.Web.Base;
using CNKI.TPI.Web.Search.IBLL;
using CNKI.TPI.Web.Search.IDAO;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace CNKI.TPI.Web.Search.BLL
{
    public class TopicService : BaseService, ITopicService
    {  
        
        ITopicDAO topicDao = null;
        public TopicService(ITopicDAO topicDao)
        {
            this.topicDao = this.generator.CreateInterfaceProxyWithTarget<ITopicDAO>(topicDao, new IInterceptor[] { new LogInterceptor() });

        }
        public IList<SYS_CMS_TOPIC_PAGECONFIG> GetPageConfig(string topiccode)
       {
           return topicDao.GetPageConfig(topiccode);
       }
        public IList<SYS_CMS_TOPIC_DBCONFIG> GetDBConfig(string sysid)
        {
            return topicDao.GetDBConfig(sysid);
        }
        public IList<SYS_CMS_TOPIC> GetTopicInfo(string topiccode)
        {
            return topicDao.GetTopicInfo(topiccode);
        }
        public SYS_CMS_TOPIC_CLS_QUERY GetDBTopicQuery(string dbCode, string clsCode, string nodeCode)
        {
            return topicDao.GetDBTopicQuery(dbCode, clsCode, nodeCode);
        }
        public IList<SYS_CMS_TOPIC> GetTopicInfoAll()
        {
            return topicDao.GetTopicInfoAll();
        }
    }
}
